package com.example.wanandroid1

import android.content.Intent
import android.os.Bundle
import androidx.activity.R
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.core.widget.doAfterTextChanged
import com.example.wanandroid1.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
    private lateinit var binding : ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
        with(binding){
            val account = etAccount.text
            val password = etPassword.text

            tvRegister.setOnClickListener{
                startActivity(Intent(this@MainActivity,RegisterActivity::class.java))
            }
            tvLogin.setOnClickListener{

            }
        }

    }
}